package com.zero.business.order;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/*
*   订单模块
* */

@SpringBootApplication
@EnableDiscoveryClient    // 启动 nacos 客户端
@EnableFeignClients       // 启动 feign 远程调用
@ComponentScan(basePackages = {"com.zero"})  // 配置扫描的范围，要包括到全局异常处理器所在类，否则手动跑出的异常，全局异常处理器捕捉不到
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

}
